using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public class objNTV_nghiep_vu
{
    Common comm = new Common();
    DataRow row;

    private  string _ma_nghiep_vu, _ma_hang;
    private string _ten_nghiep_vu="", _ten_hang="";
    private string _kinh_nghiem;
    private string _mo_ta;

    public objNTV_nghiep_vu() { }

    public string ma_nghiep_vu
    {
        get
        {
            return _ma_nghiep_vu;
        }
        set
        {
            this._ma_nghiep_vu = value;

        }
    }
    public string ma_hang
    {
        get
        {
            return _ma_hang;
        }
        set
        {
            this._ma_hang = value;

        }
    }
    public string kinh_nghiem
    {
        get
        {
            return _kinh_nghiem;
        }
        set
        {
            this._kinh_nghiem = value;

        }
    }
    public string mo_ta
    {
        get
        {
            return _mo_ta;
        }
        set
        {
            this._mo_ta = value;

        }
    }
    public string ten_nghiep_vu
    {
        get
        {
            return _ten_nghiep_vu;
        }
    }
    public string ten_hang
    {
        get
        {
            return _ten_hang;
        }
    }
    
    public void getName()
    {
        if (!string.IsNullOrEmpty(_ma_nghiep_vu))
            _ten_nghiep_vu = comm.getDataTable("select ten_nghiep_vu from DanhMuc_nghiep_vu where ma_nghiep_vu='" + _ma_nghiep_vu + "'").Rows[0][0].ToString();
        if (!string.IsNullOrEmpty(_ma_hang))
            _ten_hang = comm.getDataTable("select ten_hang from DanhMuc_hang where ma_hang='" + _ma_hang + "'").Rows[0][0].ToString();
    }
}
